.class Lcom/waiqin365/lightapp/im/activity/bf;
.super Ljava/lang/Object;

# interfaces
.implements Landroid/widget/AdapterView$OnItemClickListener;


# instance fields
.field final synthetic a:Lcom/waiqin365/lightapp/im/activity/DaibanrenwuActivity;


# direct methods
.method constructor <init>(Lcom/waiqin365/lightapp/im/activity/DaibanrenwuActivity;)V
    .locals 0

    iput-object p1, p0, Lcom/waiqin365/lightapp/im/activity/bf;->a:Lcom/waiqin365/lightapp/im/activity/DaibanrenwuActivity;

    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    return-void
.end method


# virtual methods
.method public onItemClick(Landroid/widget/AdapterView;Landroid/view/View;IJ)V
    .locals 6

    const/4 v0, 0x0

    iget-object v1, p0, Lcom/waiqin365/lightapp/im/activity/bf;->a:Lcom/waiqin365/lightapp/im/activity/DaibanrenwuActivity;

    invoke-static {v1}, Lcom/waiqin365/lightapp/im/activity/DaibanrenwuActivity;->c(Lcom/waiqin365/lightapp/im/activity/DaibanrenwuActivity;)Lcom/waiqin365/lightapp/im/adapter/az;

    move-result-object v1

    iget-object v2, p0, Lcom/waiqin365/lightapp/im/activity/bf;->a:Lcom/waiqin365/lightapp/im/activity/DaibanrenwuActivity;

    invoke-static {v2}, Lcom/waiqin365/lightapp/im/activity/DaibanrenwuActivity;->d(Lcom/waiqin365/lightapp/im/activity/DaibanrenwuActivity;)Lcom/waiqin365/lightapp/dailyreport/view/CustomListview;

    move-result-object v2

    invoke-virtual {v2}, Lcom/waiqin365/lightapp/dailyreport/view/CustomListview;->getHeaderViewsCount()I

    move-result v2

    sub-int v2, p3, v2

    invoke-virtual {v1, v2}, Lcom/waiqin365/lightapp/im/adapter/az;->a(I)Lcom/waiqin365/lightapp/im/domain/b;

    move-result-object v1

    iget-object v2, p0, Lcom/waiqin365/lightapp/im/activity/bf;->a:Lcom/waiqin365/lightapp/im/activity/DaibanrenwuActivity;

    invoke-static {v2, v1}, Lcom/waiqin365/lightapp/im/activity/DaibanrenwuActivity;->a(Lcom/waiqin365/lightapp/im/activity/DaibanrenwuActivity;Lcom/waiqin365/base/db/imnotice/g;)Lcom/waiqin365/base/db/imnotice/g;

    iget-object v2, p0, Lcom/waiqin365/lightapp/im/activity/bf;->a:Lcom/waiqin365/lightapp/im/activity/DaibanrenwuActivity;

    invoke-static {v2}, Lcom/waiqin365/lightapp/im/activity/DaibanrenwuActivity;->c(Lcom/waiqin365/lightapp/im/activity/DaibanrenwuActivity;)Lcom/waiqin365/lightapp/im/adapter/az;

    move-result-object v2

    invoke-virtual {v2}, Lcom/waiqin365/lightapp/im/adapter/az;->c()Z

    move-result v2

    if-eqz v2, :cond_1

    iget-boolean v2, v1, Lcom/waiqin365/lightapp/im/domain/b;->a:Z

    if-nez v2, :cond_0

    const/4 v0, 0x1

    :cond_0
    iput-boolean v0, v1, Lcom/waiqin365/lightapp/im/domain/b;->a:Z

    :goto_0
    iget-object v0, p0, Lcom/waiqin365/lightapp/im/activity/bf;->a:Lcom/waiqin365/lightapp/im/activity/DaibanrenwuActivity;

    invoke-static {v0}, Lcom/waiqin365/lightapp/im/activity/DaibanrenwuActivity;->c(Lcom/waiqin365/lightapp/im/activity/DaibanrenwuActivity;)Lcom/waiqin365/lightapp/im/adapter/az;

    move-result-object v0

    invoke-virtual {v0}, Lcom/waiqin365/lightapp/im/adapter/az;->notifyDataSetChanged()V

    return-void

    :cond_1
    const-string/jumbo v2, "1"

    invoke-virtual {v1, v2}, Lcom/waiqin365/lightapp/im/domain/b;->d(Ljava/lang/String;)V

    new-instance v2, Lcom/waiqin365/base/db/imnotice/g;

    invoke-direct {v2, v1}, Lcom/waiqin365/base/db/imnotice/g;-><init>(Lcom/waiqin365/base/db/imnotice/g;)V

    new-instance v3, Lcom/fiberhome/xpush/a;

    invoke-direct {v3}, Lcom/fiberhome/xpush/a;-><init>()V

    invoke-virtual {v2}, Lcom/waiqin365/base/db/imnotice/g;->m()Ljava/lang/String;

    move-result-object v4

    iput-object v4, v3, Lcom/fiberhome/xpush/a;->b:Ljava/lang/String;

    invoke-virtual {v2}, Lcom/waiqin365/base/db/imnotice/g;->l()Ljava/lang/String;

    move-result-object v4

    iput-object v4, v3, Lcom/fiberhome/xpush/a;->a:Ljava/lang/String;

    invoke-virtual {v2}, Lcom/waiqin365/base/db/imnotice/g;->a()Ljava/lang/String;

    move-result-object v4

    iput-object v4, v3, Lcom/fiberhome/xpush/a;->c:Ljava/lang/String;

    iget-object v4, p0, Lcom/waiqin365/lightapp/im/activity/bf;->a:Lcom/waiqin365/lightapp/im/activity/DaibanrenwuActivity;

    invoke-static {v4}, Lcom/waiqin365/lightapp/im/activity/DaibanrenwuActivity;->d(Lcom/waiqin365/lightapp/im/activity/DaibanrenwuActivity;)Lcom/waiqin365/lightapp/dailyreport/view/CustomListview;

    move-result-object v4

    invoke-virtual {v4, v0}, Lcom/waiqin365/lightapp/dailyreport/view/CustomListview;->setEnabled(Z)V

    iget-object v0, p0, Lcom/waiqin365/lightapp/im/activity/bf;->a:Lcom/waiqin365/lightapp/im/activity/DaibanrenwuActivity;

    invoke-static {v0}, Lcom/waiqin365/lightapp/im/activity/DaibanrenwuActivity;->e(Lcom/waiqin365/lightapp/im/activity/DaibanrenwuActivity;)Landroid/content/Context;

    move-result-object v0

    invoke-static {v3, v0}, Lcom/waiqin365/base/login/d/g;->a(Lcom/fiberhome/xpush/a;Landroid/content/Context;)V

    new-instance v0, Landroid/os/Handler;

    invoke-direct {v0}, Landroid/os/Handler;-><init>()V

    new-instance v3, Lcom/waiqin365/lightapp/im/activity/bg;

    invoke-direct {v3, p0}, Lcom/waiqin365/lightapp/im/activity/bg;-><init>(Lcom/waiqin365/lightapp/im/activity/bf;)V

    const-wide/16 v4, 0x7d0

    invoke-virtual {v0, v3, v4, v5}, Landroid/os/Handler;->postDelayed(Ljava/lang/Runnable;J)Z

    iget-object v0, p0, Lcom/waiqin365/lightapp/im/activity/bf;->a:Lcom/waiqin365/lightapp/im/activity/DaibanrenwuActivity;

    invoke-virtual {v2}, Lcom/waiqin365/base/db/imnotice/g;->a()Ljava/lang/String;

    move-result-object v2

    invoke-static {v0, v2}, Lcom/waiqin365/lightapp/im/activity/DaibanrenwuActivity;->a(Lcom/waiqin365/lightapp/im/activity/DaibanrenwuActivity;Ljava/lang/String;)V

    const-string/jumbo v0, "1"

    invoke-virtual {v1, v0}, Lcom/waiqin365/lightapp/im/domain/b;->d(Ljava/lang/String;)V

    goto :goto_0
.end method
